package com.zhs.gccs.view.taskMap;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.ProgressBar;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.zhs.gccs.R;
import com.zhs.gccs.view.BaseView;

public class FileUploadTipView extends BaseView {
    private ProgressBar id_progress_files;
    private TextView tv_file_upload_current;
    private TextView tv_file_upload_size;

    public FileUploadTipView(@NonNull Context context) {
        super(context);
    }

    public FileUploadTipView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public FileUploadTipView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void init(Context context, AttributeSet attrs, int defStyleAttr) {
        View view = LayoutInflater.from(context).inflate(R.layout.layout_view_fileupload_tip_tips, this, true);
//        TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.CustomerLogo);
//        String title = typedArray.getString(R.styleable.CustomerInfoItem_preText);
//        typedArray.recycle();
        id_progress_files = view.findViewById(R.id.id_progress_files);
        tv_file_upload_current = view.findViewById(R.id.tv_file_upload_current);
        tv_file_upload_size = view.findViewById(R.id.tv_file_upload_size);
    }
    public void setTotal(int count){
        tv_file_upload_current.setText(""+count+"");
    }
}
